package model

import "time"

type LiveRoomId struct {
	Id        uint64    `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	SendTime  time.Time `gorm:"column:send_time;type:datetime(3);not null;" json:"send_time"`
	Message   string    `gorm:"column:message;type:varchar(255);not null;" json:"message"`
	UserId    int64     `gorm:"column:user_id;type:bigint(20);not null;" json:"user_id"`
	CreatedAt time.Time `gorm:"column:created_at;type:datetime(3);default:NULL;" json:"created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3);default:NULL;" json:"updated_at"`
}

func (lr *LiveRoomId) TableName() string {
	return "live_room_id"
}
